package com.netintech.intelligenceInterface.common;

import com.netintech.intelligenceInterface.common.customException.InterfaceCallException;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

/**
 * @author lining
 * @date 2021/4/30 13:11
 * 全局异常处理器
 */
//@RestControllerAdvice
public class GlobalExceptionHandler {

//    @ExceptionHandler(InterfaceCallException.class)
//    public RequestResult notFount(InterfaceCallException e)
//    {
//        return new RequestResult(e.type, e.getMessage());
//    }
//
//    /**
//     * 系统异常
//     */
//    @ExceptionHandler(Exception.class)
//    public RequestResult handleException(Exception e)
//    {
//        return RequestResult.error(e.getMessage());
//    }


}
